<switch name="site_type">
    <case value="agent">
        <agenttpl file='share/side_agent' />
    </case>
    <case value="subagent">
        <agenttpl file='share/side_sub' />
    </case>
    <default /> 
        <agenttpl file='share/side_agent' />
</switch>
